package com.cyzy.config;

import com.cyzy.utils.CodeUtile;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(value = CodeProperties.class)
public class CodeConfig {

    @Bean
    public CodeUtile codeUtile(CodeProperties codeProperties) {
        return new CodeUtile();
    }
}
